<?php
//可以在字符串字面量后面加中括号和下标
echo "123456asdc"[5];
echo "\n";
echo "123456asdc"[mt_rand(1,9)];


echo array(1, 2, 3)[0];
echo [1, 2, 3][0];
echo "foobar"[2];